package com.jx.springcloud.service;

import com.jx.springcloud.dao.UserDao;
import com.jx.springcloud.entiy.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService{
    @Autowired
    UserDao userDao;

    @Override
    public User getUser(Long id) {
        return userDao.getUser(id);
    }

    @Override
    public int insertUser(User user) {
        return userDao.insertUser(user);
    }
}
